<?php
	class Default_Model_Evaluation extends Zend_Db_Table_Abstract
	{
		protected $_name = 'evaluation';
		protected $_primary = 'id';
		protected $_db;
		
		public function __construct()
		{
			$this->_db = Zend_Registry::get('db');
		}
        
        public function listItem()
        {
            $data = array(
                'fullname',
                'description',
                'create_date',
            );
            $sql = $this->_db->select()
                            ->from($this->_name, $data)
                            ->where('status = 1')
                            ->order('id DESC');
            return $sql;
        }
        
        public function saveItem($data)
        {
            $this->_db->insert($this->_name, $data);
        }
    }
